/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.cloudfactory.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.User;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 单表生成Entity
 * @author ThinkGem
 * @version 2018-09-05
 */
public class CloudfactoryUserFactory extends DataEntity<CloudfactoryUserFactory> {
	
	private static final long serialVersionUID = 1L;
	private String factoryNo;		// 企业号
	private String factoryName;		// 工厂名称
	private String linkman;		// 联系人
	private String contactWay;		// 联系方式
	private String mobile;		// 手机号
	private String email;		// 邮箱
	private User user;		// 用户ID
	
	public CloudfactoryUserFactory() {
		super();
	}

	public CloudfactoryUserFactory(String id){
		super(id);
	}

	@Length(min=0, max=255, message="企业号长度必须介于 0 和 255 之间")
	public String getFactoryNo() {
		return factoryNo;
	}

	public void setFactoryNo(String factoryNo) {
		this.factoryNo = factoryNo;
	}
	
	@Length(min=0, max=255, message="工程名称长度必须介于 0 和 255 之间")
	public String getFactoryName() {
		return factoryName;
	}

	public void setFactoryName(String factoryName) {
		this.factoryName = factoryName;
	}
	
	@Length(min=0, max=255, message="联系人长度必须介于 0 和 255 之间")
	public String getLinkman() {
		return linkman;
	}

	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}
	
	@Length(min=0, max=255, message="联系方式长度必须介于 0 和 255 之间")
	public String getContactWay() {
		return contactWay;
	}

	public void setContactWay(String contactWay) {
		this.contactWay = contactWay;
	}
	
	
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	@Length(min=0, max=255, message="邮箱长度必须介于 0 和 255 之间")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
}